import request from '@/utils/request'

export function updateShopInfo(data) {
  return request({
    url: '/shop',
    method: 'post',
    data
  })
}

export function queryByShopId(shopId) {
  return request({
    url: '/shop/' + shopId,
    method: 'get'
  })
}

export function queryShopInfo(shopId) {
  return request({
    url: '/shop/info/' + shopId,
    method: 'get'
  })
}

export function update(data) {
  return request({
    url: '/shop',
    method: 'put',
    data
  })
}
